package mesweb.mesweb.dto.Procedure;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

public class MesProduceProcedureLineDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private  Long id;

    /**生成工序线编号*/

    @ApiModelProperty(value = "生成工序线编号")
    private String produceProcedureNo;
    /**生成工序线名称*/

    @ApiModelProperty(value = "生成工序线名称")
    private String produceProcedureName;
    /**产品类型*/

    @ApiModelProperty(value = "产品类型")
    private Integer productTypeId;
    /**状态*/

    @ApiModelProperty(value = "状态")
    private Integer status;
    /**备注*/

    @ApiModelProperty(value = "备注")
    private String comment;
    /**审核时间*/

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date audittime;
    /**审核人*/

    @ApiModelProperty(value = "审核人")
    private String audituser;
    /**创建时间*/

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createtime;
    /**创建人*/

    @ApiModelProperty(value = "创建人")
    private String createuser;
    /**更新时间*/

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updatetime;
    /**更新人*/

    @ApiModelProperty(value = "更新人")
    private String updateuser;
    /**删除时间*/

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "删除时间")
    private Date deletetime;
    /**删除人*/

    @ApiModelProperty(value = "删除人")
    private String deleteuser;
    /**来源*/

    @ApiModelProperty(value = "来源")
    private String source;
    /**是否已删除*/

    @ApiModelProperty(value = "是否已删除")
    private Boolean isdeleted;

    private String ProductTypeName;


    private Long relationId; //关系表Id

    @ApiModelProperty(value = "生产或产品工序线Id")
    private Long sourceLineId;

    @ApiModelProperty(value = "生产或产品工序线编号")
    private String sourceLineNo;

    @ApiModelProperty(value = "生产或产品工序线名称")
    private String sourceLineName;

    @ApiModelProperty(value = "工序来源类型")
    private Integer sourceLineType;

}
